<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2021/8/23
  Time: 17:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@include file="../../../WEB-INF/jstl.jsp"%>
<%@ taglib prefix="climb" uri="/WEB-INF/tlds/climb.tld" %>
<form action="${pageContext.request.contextPath}/users/search" method="post">
    查询条件：
    <table width="100%" border=1>
        <tr>
            <td>姓名:<input type="text" name="user.name"></td>
            <td>电话号码:<input type="text" name="user.phoneNumber"></td>
            <td>用户名:<input type="text" name="user.userName"></td>
        </tr>
        <tr>
            <td><input type="submit" value="查询"/></td>
        </tr>
    </table>
</form>
<form action="${pageContext.request.contextPath }/users/delete" method="post">
    <input type="submit" value="删除"/><br/>
    商品列表：
    <table width="100%" border=1>
        <tr>
            <th><input type="checkbox" name="allid"/></th>
            <td>姓名</td>
            <td>体重</td>
            <td>电话号码</td>
            <td>邮箱</td>
            <td>生日</td>
            <td>薪水</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${userList}" var="item">
            <tr>
                <th><input type="checkbox" name="ids" value="${item.id}"/></th>
                <td>${item.name }</td>
                <td>${item.weight}</td>
                <td>${item.phoneNumber}</td>
                <td>${item.email}</td>
                <td>${climb:formatLocalDateTime(item.birthday, "yyyy-MM-dd")}</td>
                <td>${item.salary}</td>
                <td><a href="${pageContext.request.contextPath}/users/findById?id=${item.id}">修改</a></td>
            </tr>
        </c:forEach>
    </table>
</form>
